<?php
    if ($_COOKIE['LOG'] == true) {
        header('Location: home.php');
    }
    include 'layout/header.php';
?>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="b" class="ui-overlay-shadow">
            <h1>WeZett Projects</h1>
            <a href="info.html" data-role="button" data-icon="info" class="ui-btn-right" data-theme="a" data-iconpos="notext">Home</a>
        </div>
        <div data-role="content" style="min-height: 440px">
            <?php
                if ($_GET['log'] == 'f') {
            ?>
                    <ul class="ui-listview ui-listview-inset ui-corner-all ui-shadow" data-inset="true" data-role="listview">
                        <li class="ui-li ui-li-static ui-body-c ui-corner-top">
                            <table align="center">
                                <tr>
                                    <td style="vertical-align: middle">
                                        <img src="assets/images/alert.png" width="34px" />
                                    </td>
                                    <td width="20px"></td>
                                    <td style="vertical-align: middle">
                                        <font style="color:red">Fehler!</font> Die Logindaten waren fehlerhaft, bitte noch einmal versuchen.
                                    </td>
                                </tr>
                            </table>
                        </li>
                    </ul>
            <?php
                }
            ?>
            <form data-ajax="false" action="php/login.php" method="post">
                <h2>Login</h2>
                <label for="login" class="ui-hidden-accessible">Login:</label>
                <input type="text" name="login" id="login" placeholder="Login" />
                <br />
                <label for="password" class="ui-hidden-accessible">Passwort:</label>
                <input type="password" name="password" id="password" placeholder="Passwort" />
                <br />
                <button type="submit" data-theme="e">Login</button>
            </form>
            <br /><br /><br /><br /><br />
        </div>
        <div data-role="footer" data-theme="c">
            <h4>&COPY; 2011 - Simon Zwicker</h4>
        </div>
    </div>
</body>
</html>